# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iso-codes
pkgver=4.10.0
pkgrel=0
pkgdesc="ISO codes and their translations"
url="https://salsa.debian.org/iso-codes-team/iso-codes"
arch="noarch"
license="LGPL-2.1-or-later"
subpackages="$pkgname-lang $pkgname-dev"
makedepends="python3 gettext"
source="https://deb.debian.org/debian/pool/main/i/iso-codes/iso-codes_$pkgver.orig.tar.xz"

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr
	make
}

check() {
	make -C "$builddir" check
}

package() {
	make DESTDIR="$pkgdir" pkgconfigdir=/usr/lib/pkgconfig install
}

sha512sums="
0b65288b2a1ffe2db68fe0784f2f97b1a1139c592a4c8938df2c6aa225c275ce2421e39e6bad47794a5371c1667ab88daac3f7032e60b4166f93e2c70335ba04  iso-codes_4.10.0.orig.tar.xz
"
